﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using DynCMS.NET.Core.Entities.Base;

namespace DynCMS.NET.DataAccess.Mappings.Base
{
    public abstract class EntityWithAutoIdMap<T> : PersistableEntityMap<T> where T : EntityWithAutoId
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:BaseEntityMap"/> class.
        /// </summary>
        public EntityWithAutoIdMap()
        {
            this.HasKey(t => t.Id);
        }
    }
}